import {
	request
} from "../indexsd.js"
	// 对战详情
	export function getPKarenaDetail(game_arena_id){
	    return request({
	        url: `/arena/detail?game_arena_id=${game_arena_id}`,
	        method:'get'
	    })
	}
 // 加入对战
export function getPKarenaJoin(data){
    return request({
        url: `/arena/join`,
        method:'post',
        data
    })
}
// 对战宝箱列表
export function getPKarenaboxList(){
    return request({
        url: `/arena/box-list`,
        method:'get'
    })
}
// 创建对战
export function getPKarenaCreate(data){
    return request({
        url: `/arena/create`,
        method:'post',
        data
    })
}
// 房间详情
export function getRoomsDetail(id){
    return request({
        url: `/room/detail?id=${id}`,
        method:'get'
    })
}
// 进入房间
export function getRoomsJoin(data){
    return request({
        url: `/room/join`,
        method:'post',
        data
    })
}
export default {
	getPKarenaDetail,
	getPKarenaJoin,
	getPKarenaboxList,
	getPKarenaCreate,
	getRoomsDetail,
	getRoomsJoin
	
}